package com.teach.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 
 * @TableName tb_draw
 */
@TableName(value ="tb_draw")
@Data
public class TbDraw implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 优惠卷名称
     */
    private String name;

    /**
     * 优惠价格
     */
    private BigDecimal price;

    /**
     * 课程id
     */
    private Integer cid;

    /**
     * 用户id
     */
    private Integer uid;

    /**
     * 优惠券开始使用时间
     */
    private LocalDateTime startTime;

    /**
     * 优惠券到期时间
     */
    private LocalDateTime endTime;

    /**
     * 优惠券领取时间
     */
    private LocalDateTime claimTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}